// pages/psv/psv.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    name:'',
    currentLouceng:'',
    psvUrl:'',
    photoNum:1,
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that = this;
    that.setData({
      name:options.name,
      currentLouceng:options.louceng,
    })
    console.log(that.data.name);
    console.log(that.data.currentLouceng);
    that.setData({
      psvUrl:'http://112.124.106.13:8000/prod-api/louceng-photo?loupan='+that.data.name+'louceng='+that.data.currentLouceng+'&photo='+that.data.photoNum
    });
    console.log(that.data.psvUrl);
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

})